const http = uni.$u.http
const request = function(options = {}) {
	return http.request({
		method: options.method, // 请求方法必须大写
		url: options.url,
		data: options.data,
		// 会拼接到url上
		params: options.params,
		// 返回当前请求的task, options。请勿在此处修改options。非必填
		getTask: (task, options) => {
			return task
		}
	})
}
export default request